/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.mad.bikepony.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link com.mad.bikepony.service.http.DeliveryServiceSoap}.
 *
 * @author    nicola
 * @see       com.mad.bikepony.service.http.DeliveryServiceSoap
 * @generated
 */
public class DeliverySoap implements Serializable {
	public static DeliverySoap toSoapModel(Delivery model) {
		DeliverySoap soapModel = new DeliverySoap();

		soapModel.setDeliveryId(model.getDeliveryId());
		soapModel.setDeliveryCode(model.getDeliveryCode());
		soapModel.setTrackingCode(model.getTrackingCode());
		soapModel.setSenderAddress(model.getSenderAddress());
		soapModel.setSenderAdditionalInfo(model.getSenderAdditionalInfo());
		soapModel.setSenderEmail(model.getSenderEmail());
		soapModel.setRecipientAddress(model.getRecipientAddress());
		soapModel.setRecipientAdditionalInfo(model.getRecipientAdditionalInfo());
		soapModel.setRecipientEmail(model.getRecipientEmail());
		soapModel.setState(model.getState());
		soapModel.setAgentId(model.getAgentId());
		soapModel.setSubmissionTimestamp(model.getSubmissionTimestamp());
		soapModel.setPickupTimestamp(model.getPickupTimestamp());
		soapModel.setDeliveryTimestamp(model.getDeliveryTimestamp());
		soapModel.setRecipientSignature(model.getRecipientSignature());
		soapModel.setEstimatedPickupTime(model.getEstimatedPickupTime());
		soapModel.setEstimatedDeliveryTime(model.getEstimatedDeliveryTime());

		return soapModel;
	}

	public static DeliverySoap[] toSoapModels(Delivery[] models) {
		DeliverySoap[] soapModels = new DeliverySoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static DeliverySoap[][] toSoapModels(Delivery[][] models) {
		DeliverySoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new DeliverySoap[models.length][models[0].length];
		}
		else {
			soapModels = new DeliverySoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static DeliverySoap[] toSoapModels(List<Delivery> models) {
		List<DeliverySoap> soapModels = new ArrayList<DeliverySoap>(models.size());

		for (Delivery model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new DeliverySoap[soapModels.size()]);
	}

	public DeliverySoap() {
	}

	public long getPrimaryKey() {
		return _deliveryId;
	}

	public void setPrimaryKey(long pk) {
		setDeliveryId(pk);
	}

	public long getDeliveryId() {
		return _deliveryId;
	}

	public void setDeliveryId(long deliveryId) {
		_deliveryId = deliveryId;
	}

	public String getDeliveryCode() {
		return _deliveryCode;
	}

	public void setDeliveryCode(String deliveryCode) {
		_deliveryCode = deliveryCode;
	}

	public String getTrackingCode() {
		return _trackingCode;
	}

	public void setTrackingCode(String trackingCode) {
		_trackingCode = trackingCode;
	}

	public String getSenderAddress() {
		return _senderAddress;
	}

	public void setSenderAddress(String senderAddress) {
		_senderAddress = senderAddress;
	}

	public String getSenderAdditionalInfo() {
		return _senderAdditionalInfo;
	}

	public void setSenderAdditionalInfo(String senderAdditionalInfo) {
		_senderAdditionalInfo = senderAdditionalInfo;
	}

	public String getSenderEmail() {
		return _senderEmail;
	}

	public void setSenderEmail(String senderEmail) {
		_senderEmail = senderEmail;
	}

	public String getRecipientAddress() {
		return _recipientAddress;
	}

	public void setRecipientAddress(String recipientAddress) {
		_recipientAddress = recipientAddress;
	}

	public String getRecipientAdditionalInfo() {
		return _recipientAdditionalInfo;
	}

	public void setRecipientAdditionalInfo(String recipientAdditionalInfo) {
		_recipientAdditionalInfo = recipientAdditionalInfo;
	}

	public String getRecipientEmail() {
		return _recipientEmail;
	}

	public void setRecipientEmail(String recipientEmail) {
		_recipientEmail = recipientEmail;
	}

	public int getState() {
		return _state;
	}

	public void setState(int state) {
		_state = state;
	}

	public long getAgentId() {
		return _agentId;
	}

	public void setAgentId(long agentId) {
		_agentId = agentId;
	}

	public long getSubmissionTimestamp() {
		return _submissionTimestamp;
	}

	public void setSubmissionTimestamp(long submissionTimestamp) {
		_submissionTimestamp = submissionTimestamp;
	}

	public long getPickupTimestamp() {
		return _pickupTimestamp;
	}

	public void setPickupTimestamp(long pickupTimestamp) {
		_pickupTimestamp = pickupTimestamp;
	}

	public long getDeliveryTimestamp() {
		return _deliveryTimestamp;
	}

	public void setDeliveryTimestamp(long deliveryTimestamp) {
		_deliveryTimestamp = deliveryTimestamp;
	}

	public String getRecipientSignature() {
		return _recipientSignature;
	}

	public void setRecipientSignature(String recipientSignature) {
		_recipientSignature = recipientSignature;
	}

	public long getEstimatedPickupTime() {
		return _estimatedPickupTime;
	}

	public void setEstimatedPickupTime(long estimatedPickupTime) {
		_estimatedPickupTime = estimatedPickupTime;
	}

	public long getEstimatedDeliveryTime() {
		return _estimatedDeliveryTime;
	}

	public void setEstimatedDeliveryTime(long estimatedDeliveryTime) {
		_estimatedDeliveryTime = estimatedDeliveryTime;
	}

	private long _deliveryId;
	private String _deliveryCode;
	private String _trackingCode;
	private String _senderAddress;
	private String _senderAdditionalInfo;
	private String _senderEmail;
	private String _recipientAddress;
	private String _recipientAdditionalInfo;
	private String _recipientEmail;
	private int _state;
	private long _agentId;
	private long _submissionTimestamp;
	private long _pickupTimestamp;
	private long _deliveryTimestamp;
	private String _recipientSignature;
	private long _estimatedPickupTime;
	private long _estimatedDeliveryTime;
}